import request from '@/utils/request'

// 查询订单售后列表
export function listSale(query) {
  return request({
    url: '/prod-api/order/sale/list',
    method: 'get',
    params: query
  })
}

// 查询订单售后详细
export function getSale(serviceUid) {
  return request({
    url: '/prod-api/order/sale/' + serviceUid,
    method: 'get'
  })
}

// 新增订单售后
export function addSale(data) {
  return request({
    url: '/prod-api/order/sale',
    method: 'post',
    data: data
  })
}

// 修改订单售后
export function updateSale(data) {
  return request({
    url: '/prod-api/order/sale',
    method: 'put',
    data: data
  })
}

// 删除订单售后
export function delSale(serviceUid) {
  return request({
    url: '/prod-api/order/sale/' + serviceUid,
    method: 'delete'
  })
}

// 审核
export function auditSale(data) {
  return request({
    url: '/prod-api/order/sale/auditSale',
    method: 'post',
    data: data
  })
}
